package com.loren.demo33.event;

import lombok.Getter;

import java.util.EventObject;

@Getter
public class BizEvent extends EventObject {

    private static final long serialVersionUID = 1218502189151947946L;

    private final String topic;

    private final String bizId;

    /**
     * @param topic  事件topic，用于区分事件类型
     * @param bizId  业务ID，标识这一次的调用
     * @param source 事件传输对象
     */
    public BizEvent(String topic, String bizId, Object source) {
        super(source);
        this.topic = topic;
        this.bizId = bizId;
    }
}